x86/VPMU: handle APIC_LVTPC accesses
authorBoris Ostrovsky <boris.ostrovsky@oracle.com>
Fri, 23 Jan 2015 16:53:49 +0000 (17:53 +0100)
committerJan Beulich <jbeulich@suse.com>
Fri, 23 Jan 2015 16:53:49 +0000 (17:53 +0100)
commit8097616fbdda2d214b305dc41f2468f9fb88d500
tree16ff375f79caf9ee43bb2eea3b3285cec34eee8c
parentf0195f9f096cdf2dc233d4f34f96c19b44a15252
x86/VPMU: handle APIC_LVTPC accesses

Don't have the hypervisor update APIC_LVTPC when _it_ thinks the vector should
be updated. Instead, handle guest's APIC_LVTPC accesses and write what the guest
explicitly wanted.

Signed-off-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Acked-by: Kevin Tian <kevin.tian@intel.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Dietmar Hahn <dietmar.hahn@ts.fujitsu.com>
Tested-by: Dietmar Hahn <dietmar.hahn@ts.fujitsu.com>
xen/arch/x86/hvm/svm/vpmu.c
xen/arch/x86/hvm/vlapic.c
xen/arch/x86/hvm/vmx/vpmu_core2.c
xen/arch/x86/hvm/vpmu.c
xen/include/asm-x86/hvm/vpmu.h